<!-- src/components/NotFound.vue -->
<template>
  <div class="not-found">
    <div class="error-content">
      <h1>404</h1>
      <h2>页面未找到</h2>
      <p>抱歉，您访问的页面不存在</p>
      <router-link to="/dashboard" class="home-btn">
        <i class="icon-home"></i>
        返回首页
      </router-link>
    </div>
  </div>
</template>

<style scoped>
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.error-content {
  text-align: center;
}

.error-content h1 {
  font-size: 120px;
  font-weight: bold;
  color: #4F46E5;
  margin: 0;
  line-height: 1;
}

.error-content h2 {
  font-size: 32px;
  color: #1F2937;
  margin: 20px 0 16px 0;
}

.error-content p {
  color: #6B7280;
  font-size: 18px;
  margin-bottom: 32px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #4F46E5;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.home-btn:hover {
  background: #4338CA;
}
</style>